<style>
    .layui-form-label {
        text-align: left;
    }
</style>
<title>角色查看</title>
<div class="layui-card layadmin-header">
    <div class="layui-breadcrumb" lay-filter="breadcrumb">
        <a lay-href="">主页</a>
        <a><cite>角色</cite></a>
        <a><cite>角色列表</cite></a>
        <a><cite>角色查看</cite></a>
    </div>
</div>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-card">
            <div class="layui-card-header">角色查看</div>
            <div class="layui-card-body" style="padding: 15px;" template
                 lay-url="/system/tsRole/findTsRoleById.do?roleId={{ layui.router().search.roleId }}">
                <form class="layui-form" action="" lay-filter="component-form-group">
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label required">角色名称</label>
                            <div class="layui-input-inline">
                                <input type="text" name="roleName" disabled class="layui-input"
                                       value="{{d.data.roleName}}">
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label">角色编码</label>
                            <div class="layui-input-inline">
                                <input type="text" name="roleCode" disabled class="layui-input"
                                       value="{{d.data.roleCode}}">
                            </div>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label required">角色类型</label>
                            <div class="layui-input-block">
                                {{#if(d.data.roleType === 1){}}
                                <input type="text" name="roleType" disabled class="layui-input" value="管理员">
                                {{#}else{}}
                                <input type="text" name="roleType" disabled class="layui-input" value="普通角色">
                                {{#}}}
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label">状态</label>
                            <div class="layui-input-block">
                                {{#if(d.data.status === 0){}}
                                <input type="text" name="status" disabled class="layui-input" value="有效">
                                {{#}else{}}
                                <input type="text" name="status" disabled class="layui-input" value="无效">
                                {{#}}}
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item layui-form-text">
                        <label class="layui-form-label">描述</label>
                        <div class="layui-input-block">
                            <textarea type="text" name="roleDesc" placeholder="描述" class="layui-textarea">{{d.data.roleDesc}}</textarea>
                        </div>
                    </div>
                    <div class="layui-form-item" style="text-align: right">
                        <div class="layui-input-block">
                            <a lay-href="/role/list" class="layui-btn layui-btn-primary">
                                <i class="layui-icon layui-icon-return"></i>返回
                            </a>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

